package com.mjh.partners.service.Impl;

import java.util.List;

import com.mjh.partners.mapper.UserMapper;
import com.mjh.partners.pojo.User;
import com.mjh.partners.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional
public class UserServiceImpl implements UserService {
  @Autowired
  private UserMapper userMapper;
  @Override
  public User LoginCheck(int userid, String userpwd) {
    return this.userMapper.LoginCheck(userid, userpwd);
  }
  @Override
  public boolean ChangeHead(User user) {
    return this.userMapper.ChangeHead(user);
  }
  @Override
  public User getPartners(int userid) {
    return this.userMapper.getPartners(userid);
  }
  @Override
  public List<User> getPartnersNoMe(int userid) {
    return this.userMapper.getPartnersNoMe(userid);
  }
  @Override
  public User CheckUserid(int userid) {
    return this.userMapper.CheckUserid(userid);
  }
  @Override
  public boolean registerUser(User user) {
    return this.userMapper.registerUser(user);
  }
  @Override
  public boolean updateUser(User user) {
    return this.userMapper.updateUser(user);
  }

}
